<%@ Page  Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>


<asp:Content ID="cHead" ContentPlaceHolderID="cphHead" runat="server">
    <% this.Page.Title = (string)ViewData["PageTitle"]; %>
</asp:Content>

<asp:Content ID="cJScripts" ContentPlaceHolderID="cphJScripts" runat="server">
    <script type="text/javascript">
    $(function(){    
        $("#SlArchivesDates").change(function(){
            var selectedYear = $(this).val();
            if(selectedYear != "0"){
                $(location).attr('href',"/<%= (string)ViewData["SystemName"] %>/Staff/Archives/" + selectedYear);
            }
        });
    })
    </script>
</asp:Content>

<asp:Content ID="cMainContent" ContentPlaceHolderID="cphMainContent" runat="server">
    <div id="convoc">
        <div class="errorContent"><span><%= ViewData["ErrorMessage"]%></span></div>
        <hr />
        <% if (ViewData["SlArchivesDates"] != null) { %>
        Archives <%= Html.DropDownList("SlArchivesDates")%> 
        <% } %>
    </div>
</asp:Content>

<asp:Content ID="cAdminMenu" ContentPlaceHolderID="cphAdminMenu" runat="server">
    <% if ((UserType)ViewData["UserType"] != UserType.User){  %>
    <ul id="adminMenu">
        <li class="create"><%= Html.ActionLink(ScoutNET.Resources.Staff_Index_CreateLink, "Create", new { controller = "Staff", systemName = (string)ViewData["SystemName"] })%></li>
    </ul>
    <% } %>
</asp:Content>
